"""core URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import include, path, re_path, URLResolver
from django.conf import settings
from django.views import static
from .views import *

urlpatterns = [
    re_path(r'^dist/(?P<path>.*)$', static.serve, {'document_root': settings.STATIC_ROOT}, name='static'),

    path('', jsonFormat),
    path('excel', excel),
    path('excel/upload', excelUpload),
    path('excel/display', excelDisplay),

    path('editor', jsonEditor),
    path('json-editor', jsonEditor),
    path('json-format', jsonFormat),
    path('json-to-excel', jsonToExcel),
    path('json-to-csv', jsonToCsv),
    path('js-compress', jsCompress),
    path('sql-format', sqlFormat),

    path('image-editor', imageEditor),
    path('image-compress', imageCompress),
    path('image-enhance', imageEnhance),
    path('image-enhance/upload', imageEnhanceUpload),
    path('image-enhance/process', imageEnhanceProcess),
    path('markdown-editor', markdownEditor),
    path('markdown', markdownEditor),
    path('base64', base64Tool),
    path('url-encode-decode', urlEncodeDecode),
    path('cookie-format', cookieFormat),

    path('contact', contact),
    path('contact-submit', contactSubmit),
]
